加入会员
Skip to content

访问受限

课程专属内容

macOS 配置环境变量失效

如果你已经按安装文档配置过环境变量,当时能启动 Claude Code,但重开 Terminal/Warp 后又提示 command not found,部分旧版 macOS 会遇到这种情况。

改用下面这条环境配置命令就好了:

bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile

执行后关闭当前 Terminal/Warp 窗口,再重新打开,再试一次启动 Claude Code。